# WINDOWS only :-(.
VERSIONS = ["3.13.1"]
DEFAULT_VERSION = "3.13.1"

def urlbuilder(machine, dirs, version ):
  return "http://downloads.sourceforge.net/project/freeimage/Binary%%20Distribution/%(VERSION)s/FreeImage%(SHORTVERSION)s%(ARCH)s.zip" % {
    "VERSION" : version,
    "SHORTVERSION" : version.replace(".", ""),
    "ARCH" :  "Win32" }

URL = urlbuilder
FREEIMAGE_SUBDIR=  "Wrapper/FreeImage.NET/cs/Bin"

from source.builders import DownloadAndCopyBuilder

class freeimagebuilder( DownloadAndCopyBuilder ):
  def copyfromsubdir(self):
    return FREEIMAGE_SUBDIR


BUILDER = freeimagebuilder
